package com.example.demo.dao;


import java.sql.SQLException;
import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserDao {

    //根据用户名和密码查询用户，回来唯一一条数据
    User findUserByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
    User findUserByUsername(String username);
}